package com.yf.dao;

import com.yf.domain.security.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @author chentianwei
 * @date 2024-10-29 8:54
 * @description 用户-角色关联表
 */
@Mapper
public interface UserRoleMapper{
    void insertData(@Param("userId") Long userId, @Param("roles") Set<Role> roles);

    void deleteByUserId(@Param("userId") Long userId);

    void deleteByUserIds(@Param("userIds") Set<Long> userIds);
}
